Skip to content

Support cross-compiling to Windows using MinGW #1145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 5, 2021
Merged

Conversation

bjorn3
Copy link
Member

@bjorn3 bjorn3 commented Feb 25, 2021

Threads aren't supported yet as Cranelift doesn't support TLS for PE executables.

Part of https://github.com/bjorn3/rustc_codegen_cranelift/issues/977

Blocked on bytecodealliance/wasmtime#2678

@bjorn3 bjorn3 added C-enhancement Category: An issue proposing an enhancement or a PR with one. S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work. O-windows Operating system: Windows labels Feb 25, 2021
@kirawi
Copy link

kirawi commented Mar 5, 2021

Will MinGW be the only way to use it on Windows in the future, or is an MSVC compiled version planned?

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 5, 2021

I assume that MSVC will also work, but the scripts for building cg_clif itself and the sysroot require a Unix system. You can manually build it on Windows or once rust-lang/rust#81746 lands it will be available as rustup component on nightly.

@bjorn3
Copy link
Member Author

bjorn3 commented Mar 5, 2021

bytecodealliance/wasmtime#2678 has been merged.

@bjorn3 bjorn3 marked this pull request as ready for review March 5, 2021 20:37
@bjorn3 bjorn3 force-pushed the mingw_support branch 3 times, most recently from 87b8311 to 66b8fff Compare March 5, 2021 20:57
@bjorn3 bjorn3 merged commit 274a7ac into master Mar 5, 2021
@bjorn3 bjorn3 deleted the mingw_support branch March 5, 2021 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one. O-windows Operating system: Windows S-blocked Status: marked as blocked ❌ on something else such as an RFC or other implementation work.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants